﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Services;

namespace Beryl
{
    /// <summary>
    /// StartWork 的摘要说明
    /// </summary>
    [WebService(Namespace = "http://tempuri.org/")]
    [WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
    [System.ComponentModel.ToolboxItem(false)]
    // 若要允许使用 ASP.NET AJAX 从脚本中调用此 Web 服务，请取消注释以下行。 
    // [System.Web.Script.Services.ScriptService]
    public class StartWork : System.Web.Services.WebService
    {

        [WebMethod]
        public string HelloWorld()
        {
            return "Hello World";
        }

        [WebMethod(Description = "开工流传单查询")]
        public string[] getStartWork(string para, string Data)
        {
            return Model.StartWork.Instance.getStartWork(para, Data).ToArray();
        }

        [WebMethod(Description = "获取工序列表")]
        public string[] getProcess(string para, string Data)
        {
            return Model.StartWork.Instance.getProcess(para, Data).ToArray();
        }

        [WebMethod(Description = "获取下拉菜单规格")]
        public string[] getSelect(string para, string Data)
        {
            return Model.StartWork.Instance.getSelect(para, Data).ToArray();
        }

        [WebMethod(Description = "获取裁切标签循环到图表")]
        public string[] getCQTag(string para, string Data)
        {
            return Model.StartWork.Instance.getCQTag(para, Data).ToArray();
        }

        [WebMethod(Description = "获取批次号")]
        public string[] getMOLotNo(string para, string Data)
        {
            return Model.StartWork.Instance.getMOLotNo(para, Data).ToArray();
        }

        [WebMethod(Description = "开工报工提交")]
        public string[] summitBG(string para, string Data)
        {
            return Model.StartWork.Instance.summitSW(para, Data).ToArray();
        }
    }
}
